package csel.controller;

import junit.framework.TestCase;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import csel.controller.dispatchers.ModelDispatcher;
import csel.controller.factories.CommandFactory;
import csel.model.GameCommand;

/*
 * Test code for Abstract Listeners and Event
 * Dispatchers
 */

public class TestAbstractListenersAndDecoders extends TestCase
{
	// DUMMY OBJECTS!
	ModelDispatcher ad1 = new ModelDispatcher(new ModelDummy());
	ModelDispatcher ad2 = new ModelDispatcher(new ModelDummy());
	private class ModelCommandFactory implements CommandFactory
	{
		public GameCommand createGameCommand()
		{
			return new GameCommand() {
				public void execute()
				{
					System.out.println(toString());
				}
				public String toString()
				{
					return "I'm a dummy command!";
				}
		
			};
		}
	}
	ModelCommandFactory mcf1 = new ModelCommandFactory();
	ModelCommandFactory mcf2 = new ModelCommandFactory();
	
	
	// run the test
    public static void main( String args[] ) {
    	junit.textui.TestRunner.run(TestAbstractListenersAndDecoders.class);
    }
    
    @Test
    public void testAreaViewActionListenerConstructor()
    {
    }
    
    @Test
    public void testActionPerformed() throws InterruptedException
    {
    }
    
    
    @Before
	protected void setup() throws Exception {
		super.setUp();
	}
    
    @After
	protected void tearDown() throws Exception {
		super.tearDown();
	}

}
